
'''
# @author bricker
'''
class Message:
    code = 0
    msg = ''
    obj = None

class ErrorCode:
    def enum(**enums):
        return type('Enum', (), enums)
    c = enum(SUCCESS=0, FILEERROR=1001, ILLEGALCONTENT=1002)
    # m = enum(SUCCESS='成功', FILEPATHERROR = '文件路径不合法',FILELOSE='文件不存在',  FILEERROR= '文件不合法',URLERROR='URL不合法',UNZIP='解压异常')